package com.mongo.service.impl;


import com.mongo.mapper.MybatisPlusMapper;
import com.mongo.pojo.MongoDb;
import com.mongo.pojo.MybatisPlus;
import com.mongo.service.MybatisPlusService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class MybatisPlusServiceImpl implements MybatisPlusService {

    @Resource
    private MybatisPlusMapper mybatisPlusMapper;

    @Autowired
    private DbServiceImpl dbService;

    @Override
    public List<MybatisPlus> findAll() {
        List<MybatisPlus> plusList = mybatisPlusMapper.selectList(null);
        plusList = plusList.subList(1, 10);
        return plusList;
    }


}
